package com.xiaobai.netease_news.utils;

import android.graphics.Bitmap;

import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.xiaobai.netease_news.R;

/**
 * Created by Android Studio
 * Project: Netease_News
 * Author: Jack
 * Email: jackfangqi1314@gmail.com/jackfangqi@163.com
 * Date: 2015/6/24
 */
public class ImageUniversalLoaderConfiguration {

    public static DisplayImageOptions initOptions() {

        return new DisplayImageOptions.Builder()
                .showImageOnLoading(R.mipmap.biz_topic_vote_detail_default)
                .showImageOnFail(R.mipmap.base_big_img_clickload)
                .cacheInMemory(true).cacheOnDisk(true).bitmapConfig(Bitmap.Config.RGB_565)
                .build();
    }
}
